<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs for page functions.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="file-name">/functions.php</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
							<a href="#sec-classes">Classes</a>
			|							<a href="#sec-includes">Includes</a>
			|											<a href="#sec-functions">Functions</a>
			</div>
	<div class="info-box-body">	
		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">PHP Daycare</p>
<p class="description"><p>function.php</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> Jason Butz</li>
				<li><span class="field">version:</span> 0.0</li>
			</ul>
		
			</div>
</div>
		
	<a name="sec-classes"></a>	
	<div class="info-box">
		<div class="info-box-title">Classes</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
			<span class="disabled">Classes</span>
			|							<a href="#sec-includes">Includes</a>
				|																<a href="#sec-functions">Functions</a>
					</div>
		<div class="info-box-body">	
			<table cellpadding="2" cellspacing="0" class="class-table">
				<tr>
					<th class="class-table-header">Class</th>
					<th class="class-table-header">Description</th>
				</tr>
								<tr>
					<td style="padding-right: 2em; vertical-align: top">
						<a href="../PHPDaycare/session.html">session</a>
					</td>
					<td>
											session
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em; vertical-align: top">
						<a href="../PHPDaycare/eventlogger.html">eventlogger</a>
					</td>
					<td>
											Deals with event logging
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em; vertical-align: top">
						<a href="../PHPDaycare/FileUpload.html">FileUpload</a>
					</td>
					<td>
											FileUpload
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em; vertical-align: top">
						<a href="../PHPDaycare/Template.html">Template</a>
					</td>
					<td>
											Template
										</td>
				</tr>
							</table>
		</div>
	</div>

	<a name="sec-includes"></a>	
	<div class="info-box">
		<div class="info-box-title">Includes</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-classes">Classes</a>
				|						<span class="disabled">Includes</span>
			|													<a href="#sec-functions">Functions</a>
					</div>
		<div class="info-box-body">	
			<a name="_config_php"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="include-title">
			<span class="include-type">include_once</span>
			(<span class="include-name"><a href="../PHPDaycare/_config.php.html">'config.php'</a></span>)
			(line <span class="line-number">13</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Include config.php so that we can use the database.</p>
<p class="description"><p>Using include_once to be sure that we don't get multiple copies when functions.php is included</p></p>
	
</div>
		</div>
	</div>
	
	
	
	<a name="sec-functions"></a>	
	<div class="info-box">
		<div class="info-box-title">Functions</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-classes">Classes</a>
				|										<a href="#sec-includes">Includes</a>
				|												<span class="disabled">Functions</span>
		</div>
		<div class="info-box-body">	
			<a name="functionbr2nl" id="functionbr2nl"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">br2nl</span> (line <span class="line-number">571</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">br2nl</p>
<p class="description"><p>Converts <br /> to \n</p></p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			br2nl
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$string</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$string</span>			</li>
				</ul>
		
	
</div>
<a name="functionloggedInAsAdmin" id="functionloggedInAsAdmin"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">loggedInAsAdmin</span> (line <span class="line-number">585</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">loggedInAsAdmin</p>
<p class="description"><p>Checks if the user is logged in and an admin</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> -1 means not logged in, 0 logged in but not admin, 1 logged in and admin</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">interger</span>
		<span class="method-name">
			loggedInAsAdmin
		</span>
				()
			</div>

		
	
</div>
<a name="functionmapAdults" id="functionmapAdults"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">mapAdults</span> (line <span class="line-number">650</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">mapAdults</p>
<p class="description"><p>Creatings a mapping of adults and their IDs. The returned array is 0 indexed</p></p>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			mapAdults
		</span>
				()
			</div>

		
	
</div>
<a name="functionmapChildren" id="functionmapChildren"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">mapChildren</span> (line <span class="line-number">616</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">mapChildren</p>
<p class="description"><p>Creatings a mapping of children and their IDs. The returned array is 0 indexed</p></p>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			mapChildren
		</span>
				()
			</div>

		
	
</div>
<a name="functionmapClasses" id="functionmapClasses"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">mapClasses</span> (line <span class="line-number">633</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">mapClasses</p>
<p class="description"><p>Creatings a mapping of classes and their IDs. The returned array is 0 indexed</p></p>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			mapClasses
		</span>
				()
			</div>

		
	
</div>
		</div>
	</div>
	
	<p class="notes" id="credit">
		Documentation generated on Sun, 18 Apr 2010 10:58:12 -0500 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>